package classes.view.component 
{
	import com.greensock.TweenMax;
	import com.greensock.easing.Cubic;
	import com.greensock.easing.Quart;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class PopupSelectItem extends MovieClip
	{
		public var _id:int;
		
		private var text_text:TextField;
		private var line:Sprite;
		
		public function PopupSelectItem() 
		{
			super();
			setLayOut();
		}
		
		public function set num($param:int):void
		{
			_id = $param;
		}
		public function get num():int
		{
			return _id;
		}
		
		public function set overEffect($bool:Boolean):void
		{
			if($bool){
				TweenMax.to(text_text, 0.3, {tint:0xDE4637, ease:Quart.easeOut});
			}else{
				TweenMax.to(text_text, 0.3, {removeTint:true, ease:Quart.easeOut});
			}
		}
		public function set lineVisible($param:Boolean):void
		{
			line.visible = $param;
		}
		public function set textWidth($width:int):void
		{
			this.text_text.width = $width;
		}
		public function set lineWidth($width:int):void
		{
			this.line.width		 = $width;
		}
		
		public function get textIn():String
		{
			return this.text_text.text;
		}
		public function set textIn($text:String):void
		{
			this.text_text.text = $text;
		}
		private function setLayOut():void
		{
			this.text_text	=	this.getChildByName('text_txt') as TextField;
			this.line		=	this.getChildByName('line_mc') 	as Sprite;
		}
		
	}
}